import Vue from 'vue'
import Router from 'vue-router'
import Header from '@/components/header/header'
import Goods from '@/components/goods/goods'
import Ratings from '@/components/ratings/ratings'
import seller from '@/components/seller/seller'

Vue.use(Router)

export default new Router({
mode:"history",
linkActiveClass:"active",
routes: [
    {
      path: '/goods',
      name: 'goods',
      component: Goods
    }, {
      path: '/ratings',
      name: 'ratings',
      component: Ratings
    }, {
      path: '/seller',
      name: 'seller',
      component: seller
    }, {
      path: '/',
      redirect: { name: 'goods' }
    } 
]
})
